<?php
session_start();

if(isset($_SESSION['username']) && $_SESSION['username'] == "admin")
{
    header("location:main.php");
}else{
    header("location:logon.php");
}



  
?>
